<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/usertop.jsp" %>
<%@ include file="/jsp/jscommom.jsp"%>
<jsp:directive.page import="com.lg.system.CTurnPage" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>职位搜索</title>
<link href="/css/login.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
<bean:write name="com_struts_web_user_manage_jianli_FindJobForm" property="printAddressSql" filter="false"/>
<bean:write name="com_struts_web_user_manage_jianli_FindJobForm" property="printKindSql" filter="false"/>

	
	
	function goto(url){
     document.forms[0].action="/com/corpor/manage/hviewcorpor";
    window.open(url,"_blank");
    }
	</script>
	
	<script type="text/javascript">
	function doMethod(){
	    document.forms[0].omethod.value="query";
	    document.forms[0].submit();  
	    document.forms[0].omethod.value="";
	}
	</script>
	<%
		CTurnPage mPage = new CTurnPage();
		mPage = (CTurnPage) request.getAttribute("page");
	%>
	<body>
		<html:form action="/com/struts/web/user/jlmanage/findjob" method="post">
			<html:hidden property="omethod" />
			<div align="center">
				<table width="97%" border="0" align="center" cellpadding="0"
				cellspacing="1" class="line1">
					<tr>
						<td class="titlebg" colspan="4">
							职位搜索
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1">
							职位名称:
						</td>
						<td class="mtdtextleft">
							<html:text property="positionName"  styleClass="input1"></html:text>
						</td>
						
						<td class="mtdtitle1">
							企业名称:
						</td>
						<td  class="mtdtextleft">
							<html:text property="corporName" styleClass="input1"></html:text>
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1">
							企业性质:
						</td>
						<td class="mtdtextleft">
							<html:select property="type" styleClass="input1">
										<SCRIPT language=JavaScript>
			        for (var i = 0; i < (kindId.length); i++) {
			         document.write("<OPTION value='"+kindId[i]+"'");
			    document.write(">" + kindId[++i]+"</OPTION>");	
			  }
			</SCRIPT>
									</html:select>
						</td>

						<td class="mtdtitle1">
							所在地:
						</td>
						<td class="mtdtextleft">
							<html:select property="address" styleClass="input1">
										<SCRIPT language=JavaScript>
			        for (var i = 0; i < (address.length); i++) {
			         document.write("<OPTION value='"+address[i]+"'");
			    document.write(">" + address[++i]+"</OPTION>");	
			  }
			</SCRIPT>
									</html:select>
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1" colspan="4">
							<input value="查询" type="button" onclick="doMethod()"
								class="tbutton" />
							<input value="重置" type="reset"
								class="tbutton" />
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1" colspan="4">
							<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="1">
								<tr>
									<td class="titlebg" colspan="3">
										职位列表
									</td>
								</tr>

								<tr>
							<td width="10%" class="titlebg">
								序号
							</td>
							<td width="40%" class="titlebg">
								职位名称
							</td>
							<td width="40%" class="titlebg">
								公司名称
							</td>
						</tr>
								<logic:empty name="page" property="sqlList">
									<tr>
										<td align="center" colspan="3">
											没有可显示的内容！
											<br>
										</td>
									</tr>
								</logic:empty>
								<logic:notEmpty name="page" property="sqlList">
							<logic:iterate type="com.struts.web.hopsearch.HopSearchViewForm"
								id="positionList" name="page" property="sqlList" indexId="index">
								<%
								if((index.intValue() + 1)%2==0){
								 %>
								<tr style="cursor:hand"
									onclick="goto('/com/corpor/manage/hviewcorpor.do?corporId=${positionList.corporId}')">
									<td class="mtdtextleft">
										<%=(index.intValue() + 1)%>
									</td>
									<td class="mtdtextleft">
										${positionList.position }
									</td>
									<td class="mtdtextleft">
										${positionList.corporationname }
									</td>
								</tr>
								<%
								}else{
								 %>
								 <tr style="cursor:hand"
									onclick="goto('/com/corpor/manage/hviewcorpor.do?corporId=${positionList.corporId}')">
									<td class="mtdtextleft">
										<%=(index.intValue() + 1)%>
									</td>
									<td class="mtdtextleft">
										${positionList.position }
									</td>
									<td class="mtdtextleft">
										${positionList.corporationname }
									</td>
								</tr>
								 <%
								 }
								  %>
							</logic:iterate>
						</logic:notEmpty>
								<tr>
									<td colspan="6" class="mtdtitle1">
										<table width='100%'>
											<tr>
												<td class="left">
													<%=mPage.getPageInfo()%>
												</td>
												<td class="right">
													<%=mPage.getTurnPageLink()%>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</html:form>

	</body>
</html>
